package com.schoolCommunity.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Information<T> {

    private Integer code;
    private String message;
    private T data;

    public Information(Integer code, String message) {
        this(code, message, null);
    }

}
